.slider-examples {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.explanation-box {
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 4px;
}

.explanation-box p {
  margin: 8px 0;
  color: #333;
  line-height: 1.5;
}

.explanation-box p:first-child {
  margin-top: 0;
}

.explanation-box p:last-child {
  margin-bottom: 0;
}

.example-container {
  margin-bottom: 40px;
}

.example-container h2 {
  margin-bottom: 20px;
  color: #333;
}

.example-description {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

/* 基础滑块样式 */
.basic-slider,
.range-slider,
.step-slider,
.array-slider,
.format-slider {
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin: 10px 0;
}

.array-slider {
  margin: 40px 0;
}

.format-slider {
  margin: 40px 0;
}

/* 通用滑块样式 */
.basic-slider .noUi-connect,
.range-slider .noUi-connect,
.step-slider .noUi-connect,
.array-slider .noUi-connect,
.format-slider .noUi-connect {
  background: #2196F3;
}

.basic-slider .noUi-handle,
.range-slider .noUi-handle,
.step-slider .noUi-handle,
.array-slider .noUi-handle,
.format-slider .noUi-handle {
  width: 20px;
  height: 20px;
  right: -10px;
  top: -5px;
  background: #fff;
  border: 2px solid #2196F3;
  border-radius: 50%;
}

.basic-slider .noUi-handle:before,
.basic-slider .noUi-handle:after,
.range-slider .noUi-handle:before,
.range-slider .noUi-handle:after,
.step-slider .noUi-handle:before,
.step-slider .noUi-handle:after,
.array-slider .noUi-handle:before,
.array-slider .noUi-handle:after,
.format-slider .noUi-handle:before,
.format-slider .noUi-handle:after {
  display: none;
}

/* 颜色选择器样式 */
.color-picker {
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 20px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
}

.color-picker .color-slider {
  width: 10px;
  height: 200px;
  margin: 0;
  background: #ddd;
}

.color-picker .red .noUi-connect {
  background: #c0392b;
}

.color-picker .green .noUi-connect {
  background: #27ae60;
}

.color-picker .blue .noUi-connect {
  background: #2980b9;
}

.color-picker .noUi-vertical .noUi-handle {
  height: 28px;
  right: -10px;
}

.color-result {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgb(127, 127, 127);
  margin-left: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Pip styles */
.noUi-pips {
  padding: 10px 0;
}

.noUi-value {
  font-size: 12px;
  color: #666;
}

.noUi-marker {
  background: #ddd;
}

.noUi-marker-horizontal.noUi-marker-large {
  height: 8px;
}

.noUi-marker-horizontal.noUi-marker {
  height: 4px;
}

/* Example 8: Tooltips Only When Sliding */
.tooltip-slider .noUi-tooltip {
  display: none;
}

.tooltip-slider .noUi-active .noUi-tooltip {
  display: block;
}

/* Example 9: Colored Connect Elements */
.color-connect-slider .connect-red {
  background: #c0392b;
}

.color-connect-slider .connect-yellow {
  background: #f1c40f;
}

.color-connect-slider .connect-green {
  background: #27ae60;
}

.color-connect-slider .connect-blue {
  background: #2980b9;
}

.c-1-color {
  background: red;
}

.c-2-color {
  background: yellow;
}

.c-3-color {
  background: green;
}

.c-4-color {
  background: blue;
}

.c-5-color {
  background: purple;
}

/* Example 10: Soft Limits */
.soft-limit-slider .noUi-pips {
  padding: 10px 0;
}

.soft-limit-slider .noUi-value {
  color: #666;
  font-size: 12px;
}

/* Pips Interaction Styles */
.pips-slider {
  margin: 30px 0px;
}

.pips-slider .noUi-value {
  cursor: pointer;
  color: #666;
}

.pips-slider .noUi-value:hover {
  color: #000;
}

.soft-limit-slider {
  margin: 30px 0px;
}
